package com.umeox.watch.moto.dataservice.db.model;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

@Entity(tableName = TasksAttribute.TABLE_NAME)
public class TasksAttribute {

    @Ignore
    public static final String TABLE_NAME = "tasks_attribute";

    @PrimaryKey(autoGenerate = true)
    public long _id;

    //任务id
    public int id;

    //类型	int	0：系统内置；1：用户添加；2：目标赞念；
    public int type;

    //系统内置action	收拾餐具：CLEAN_DISHES；清理垃圾：CLEAN_TRASH；洗手：WASH_HANDS；喝水：DRINK_WATER；阅读：READ_BOOK；跳绳：JUMP_ROPE；
    @ColumnInfo(name = "t_action")
    public String action;

    //标题
    public String title;

    //内容
    public String content;

    //提醒时间	格式：HH:mm
    public String reminderTime;

    //重复周期表达式		由7位为0或1字符组成，第一个字符为星期天，第二个字符为星期一，依次至星期六，1代表开启，0代表关闭。
    public String repeatExpression;

    //额外信息
    public String additionalInfo;

    @Override
    public String toString() {
        return "TasksAttribute{" +
                "_id=" + _id +
                ", id=" + id +
                ", type=" + type +
                ", action='" + action + '\'' +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", reminderTime='" + reminderTime + '\'' +
                ", repeatExpression='" + repeatExpression + '\'' +
                ", additionalInfo='" + additionalInfo + '\'' +
                '}';
    }
}
